package com.hdoit.ares.web.cust.modelconfig;

import com.hdoit.ares.web.cust.providers.CustomerLevelProvider;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

public class CustomerSearchConfig extends ModelMetadataAttributeConfiguration{
	public CustomerSearchConfig(){
        this.setProperty("username")
            .hasAttribute(new DisplayNameAttribute("姓名"));
       
        this.setProperty("nickname")
            .hasAttribute(new DisplayNameAttribute("昵称"));
        
        this.setProperty("userIdentity")
        	.hasAttribute(new DisplayNameAttribute("用户标识"));
        
        this.setProperty("refereeIdentity")
            .hasAttribute(new DisplayNameAttribute("推荐人标识"));

        this.setProperty("startDate")
            .hasAttribute(new DisplayNameAttribute("注册时间从"))
            .hasAttribute(new DateTimeAttribute());
        
        this.setProperty("endDate")
            .hasAttribute(new DisplayNameAttribute("到"))
            .hasAttribute(new DateTimeAttribute());

        this.setProperty("level")
            .hasAttribute(new DisplayNameAttribute("客户级别"))
            .hasAttribute(new DropDownListAttribute(new CustomerLevelProvider("senior")));

  
    }
}
